/*
 * FileHelper.h
 *
 *      Author: Jerome RD Soine and Christoph A Brand
 *      Institution: Schwarz goup, Institute for Theoretical Physics, Heidelberg University, Germany
 */

#ifndef FILEHELPER_H_
#define FILEHELPER_H_

#include <vector>
#include <fstream>
#include <string.h>
#include <cstdlib>

class FileHelper {
public:
	static vector<double> get_vector_double_from_file(string filename){
		vector<double> sol;
		ifstream fin(filename.c_str());
		string line;
		while (getline(fin, line)) {
			sol.push_back(atof(line.c_str()));
		}
		fin.close();
		return sol;
	};
};


#endif /* FILEHELPER_H_ */
